# $Id: PKGBUILD 81849 2013-01-02 03:07:05Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Thomas Baechler <thomas@archlinux.org>

pkgname=ginac
pkgver=1.6.2
pkgrel=2
pkgdesc="C++ library for symbolic calculations"
arch=('i686' 'x86_64')
url='http://www.ginac.de/'
license=('GPL')
depends=('cln')
makedepends=('transfig' 'doxygen' 'texlive-bin')
source=(http://www.ginac.de/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('c93913c4c543874b2ade4f0390030641be7e0c41')
install=${pkgname}.install

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr --disable-static

  make
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make check
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
}
